<template>

  <el-container class="home-container">

    <el-header>
      <div class="home-left" >
        <img class="home-imge" src="../assets/whgc.jpg" alt="">
        <h2>后台管理系统</h2>
      </div>
      <el-button type="success" round>退出登录</el-button>
    </el-header>

    <el-container>
      <el-aside>
        <el-menu background-color="#545c64" text-color="#fff" active-text-color="rgb(57,172,168)" router>
          <el-menu-item index="/activity">
            <i class="el-icon-s-flag"></i>
            <span slot="title">活动管理</span>
          </el-menu-item>
          <el-menu-item index="/users">
            <i class="el-icon-s-custom"></i>
            <span slot="title">用户管理</span>
          </el-menu-item>
          <el-menu-item index="/dynamic">
            <i class="el-icon-s-opportunity"></i>
            <span slot="title">动态管理</span>
          </el-menu-item>
        </el-menu>
      </el-aside>

      <el-main>
      <router-view></router-view>
      </el-main>
    </el-container>

  </el-container>

</template>
<script>

</script>

<style scoped>
  .home-container {
    height: 100%;
  }
  .el-header {
    background-color: rgb(57,172,168);
    display: flex;
    justify-content: space-between;
    padding-left: 0;
    align-items: center;

  }
  .home-imge {
    height: 60px;
  }
  .home-left {
    height: 60px;
    display: flex;
    align-items: center;

  }
  h2 {
    display: inline;
    color: #fff;
    margin-left: 15px;
  }
  .el-aside {
    background-color: #545c64;
  }
  .el-main {
    background-color: cornsilk;
  }
</style>
